/*
 * System : Ticketing
 * Package: com.ql2.ticketing.common
 * Interface: ITSConstants
 *
 * © QL2 Software 2011
 */
package main.java.org.dss.lm.admin.common;

/**
 * This interface contains list of constants that are used across the ticketing system.
 */
public interface ITSConstants {

    /*
     * Declarations used for maintaining session as well as the login/logout process.
     */
    public static final String AUTHORIZED = "authorized";
    public static final String UNAUTHORIZED = "unauthorized";
    public static final String LOGOUT_FAILED = "Logout failed";
    public static final String LOGOUTFAILED = "logoutFailed";
    public static final String ACTIVE = "active";
    public static final String REMEMBER_ME = "rememberMe";
    public static final String COOKIE_USERNAME = "cookieUsername";
    public static final String COOKIE_PASSWORD = "cookiePassword";
    public static final String ADMIN_ROLE = "4";    
    public static final String LOGOUT = "logout";
    public static final String LOGOUT_SUCCESS = "Logout successfully.";
    public static final String INVALID_USER = "Invalid username or password.";
    public static final Integer COOKIE_AGE = 60 * 60 * 24;
    public static final Integer COOKIE_AGE_ZERO = 0;
    public static final String COOKIE_VALUE_EMPTY = "";
    public static final String SUCCESS = "success";
    public static final String INPUT = "input";
    public static final String CURRENT_USER_DETAILS = "currentUserDetails";
    public static final String ROLE_LIST = "roleList";
    public static final String EDIT = "edit";
    public static final String DELETE = "delete";
    public static final String INACTIVE = "Inactive";    
    public static final String DEFAULT_PASSWORD = "123456";

    /*
     * Declaration used for validating any kind of a new task creation.
     */
    public static final String VALIDATE_NULL = "validateNull";

    /*
     * Declarations used in Mailing section.
     */
    public static final String MAIL_USER = "mail.user";
    public static final String MAIL_PASSWORD = "mail.password";
    public static final String MAIL_STORE_PROTOCOL = "mail.store.protocol";
    public static final String MAIL_IMAPS_HOST = "mail.imaps.host";
    public static final String MAIL_READER_FOLDER = "mail.reader.folder";
    public static final String MAIL_TRANSPORT_PROTOCOL = "mail.transport.protocol";
    public static final String MAIL_SMTP_HOST = "mail.smtp.host";
    public static final String MAIL_SMTP_PORT = "mail.smtp.port";
    public static final String MAIL_SMTP_AUTH = "mail.smtp.auth";
    public static final String MAIL_SMTP_STARTTLS_ENABLE = "mail.smtp.starttls.enable";
    public static final String MAIL_SENDER = "QL2TestSupport";
    public static final String SUPPORT_EMAIL = "ql2ticketingsystem@gmail.com";
    public static final String UPLOAD_DRIVER = "D:";
    public static final String UPLOAD_FOLDER = "TicketingUploads";
    public static final String SUBJECT_NULL = "nul subject";
    public static final String SUBJECT_FIRST = "QL2 Support has received your request. Ticket [#";
    public static final String SUBJECT_LAST = "]";
    public static final String SUBJECT_INSUFFICIENT_INPUT = "QL2 Support: Insufficient input for ticket generation.";
    public static final String CONTENT_TYPE = "text/html";
    public static final String APPMAIL_RESOURCE_PROPERTIES = "appmailresource.properties";
    public static final String TICKET_GENERATION_MAIL_CONTENT = "ticket.generation.mail.content";
    public static final String MAIL_SUBJECT = "<mail_subject>";
    public static final String INSUFFICIENT_SUBJECT_MAIL_CONTENT = "insufficient.subject.mail.content";

    /*
     * Declarations pertaining to setting appropriate values for Support.
     */
    public static final String DESCRIPTION = "Description: ";
    public static final String JOB_NAME = "Job Name: ";
    public static final String SITES = "Sites: ";
    public static final String RUN_DATE = "Run Date: ";
    public static final String SAMPLE_INPUT = "Sample Input: ";
    public static final String USER_NAME = "User Name: ";
    public static final String TASK_NAME_REQUIRED = "Enter task name.";
    public static final String FILL_MANDATORY_FIELDS = "Fill mandatory fields.";
    public static final String VALIDATE_LENGTH = "validateLength";
    public static final String TASK_NAME_LENGTH = "Task name should be between 5 and 25.";
    public static final String APPLICATION_PARAMETER = "appParams";
    public static final String PROJECT_APPLICATION = "projectApps";

    /*
     * Declarations used in cases of hashCode() implementations.
     */
    public static final int MAX_PRIME_VALUE = 31;
    public static final int MIN_PRIME_VALUE = 0;
    public static final int MID_PRIME_VALUE = 27;
    public static final int PRIME_VALUE = 1;

    /*
     * Declarations used wherever there is a need of defining array or list of
     * indexes in the application.
     */
    public static final int ZEROTH_INDEX = 0;
    public static final int FIRST_INDEX = 1;
    public static final int SECOND_INDEX = 2;
    public static final int THIRD_INDEX = 3;
    public static final int FOURTH_INDEX = 4;
    public static final int FIFTH_INDEX = 5;
    public static final int SIXTH_INDEX = 6;
    public static final String SEMICOLON = ";";
    public static final boolean BOOLEAN_TRUE = true;

} // End Interface ITSConstants